package com.vhall.component.controller.rbac.inner;

import com.vhall.component.entity.rbac.vo.MenuesVO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 内部调用
 *
 * @author longzhen.gong
 * @date 2021/6/10 16:48
 */
@FeignClient(name = "RbacMenuesInnerFacade", path = "/v4/inner/rbac/menu")
public interface RbacMenuesInnerFacade {

    /**
     * 按角色获取菜单列表
     *
     * @param roleId 参数
     * @return 返回值
     */
    @ApiOperation("按角色获取菜单列表")
    @GetMapping(value = "/getListByRoleId")
    List<MenuesVO> getListByRoleId(@RequestParam("role_id") Integer roleId);

}
